#include "widget.h"

#include <QApplication>
#include <QtGui>
#include <QFrame>
#include <QString>
#include <QMediaPlayer>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    //设置背景图片
    w.setAutoFillBackground(true);
    QPalette palette;
    QPixmap pixmap(":/new/prefix1/images/3.jpg");
    palette.setBrush(QPalette::Window, QBrush(pixmap));
    w.setPalette(palette);

    w.show();
    return a.exec();
}
